package com.spring.learn01;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
		Person p = (Person) ctx.getBean("person");
		System.out.println(p);
		
		School sc = (School) ctx.getBean("school");
		System.out.println(sc);
		
		  sc = (School) ctx.getBean("school");
		System.out.println(sc );
		
		ctx.close();
	}
}
